package com.erytech.linktalk.dao.ibatis;

import java.util.List;

import com.erytech.linktalk.dao.RoomDao;
import com.erytech.linktalk.dao.domain.Room;
import com.ibatis.dao.client.DaoManager;
import com.ibatis.dao.client.template.SqlMapDaoTemplate;

public class SqlMapRoomDao extends SqlMapDaoTemplate implements RoomDao {

	public SqlMapRoomDao(DaoManager daoManager) {
		super(daoManager);
	}

	public Room getRoom(String id) {
		return (Room)queryForObject("getRoomById", id);
	}

	public List getRoomList() {
		return queryForList("getRoomList");
	}

	public List getRoomsOnSite(String siteDomain) {
		return queryForList("getRoomsOnSite", siteDomain);
	}

}
